package com.springsecurity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springsecurity.dao.SysUserMapper;
import com.springsecurity.pojo.SysUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SysUserServiceImpl  extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService{

    @Resource
    SysUserMapper sysUserMapper;

    @Override
    public SysUser login(String usrName) {
        return sysUserMapper.getByUsrNameSysUserAndRole(usrName);
    }
}
